<!--Import the FreeMovieCompilerTollbox-->

<script src="../php.js"></script>
<script src="../freemoviecompiler2.js"></script>
<script src="../freemoviecompilertoolbox2.js"></script>
<script src="b64.js"></script>

<script>


//-------------------------------------------------------
// initialize new SWF object.

swf = new FreeMovieCompilerToolbox();

//-------------------------------------------------------
// set the global parameters of your movie
// frame size is in twips (1 twip = 20 pixels)

swf.SetSWFVersion(5);
swf.SetFrameSize(16000, 12000); // = 800 x 20, 600 x 20
swf.SetFrameRate(24.0);
swf.SetBackgroundColor(255, 255, 255);

//-------------------------------------------------------
// lights! camera! action!

swf.BeginMovie();

//-------------------------------------------------------
// frame # 00000

CharacterInfo = swf.DefineStraightLine(0,0, 16000, 12000, 300, false, 0, 0, 0, 0);
CharacterDepth = swf.EasyPlaceObject(CharacterInfo["CharacterID"]);

//-------------------------------------------------------
// end frame # 00000

swf.EndFrame();

//-------------------------------------------------------
// That's it, Folks!

swf.EndMovie();

//-------------------------------------------------------
// send movie to the browser

	width = 800
	height = 600
  flash_b64 = btoa(swf.GetMovie())
  flash_url = 'data:application/x-shockwave-flash;base64,'+flash_b64
  proxy_url = 'http://antimatter15.com/misc/b64.php?'+flash_url.slice(5)
  flash_html = '<object width="'+width+'" height="'+height+'">' +
  '<param name="movie" value="'+proxy_url+'">' +
  '<embed src="'+proxy_url+'" width="'+width+'" height="'+height+'">' +
  '</embed></object><br>'+
  'For some reason, I can\'t embed flash media with data:URIs like images, so to try it, so the above flash is sent through a <a href="http://dean.edwards.name/weblog/2005/06/base64-ie/">server</a>. If you want entirely pure client-side, you have to <a href="'+flash_url+'">save it</a> onto your hard disk and open it locally. If you find a way that does work, please tell me at antimatter15@gmail.com' 
  
  document.write(flash_html);
</script>

